package com.magus.project.yddemo.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.magus.framework.system.annotation.AppAppInfo;
import com.magus.framework.system.annotation.AppFunctionInfo;
import com.magus.framework.system.annotation.AppFunctionInfo.FunctionType;

import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@Controller("PageView_project_yddemo")
@RequestMapping("/yddemo")
@AppAppInfo(key = "yddemo", name = "demo", remark = "demo")
public class _PageViewController {

	@RequestMapping("/indicators/page/manage")
	@RequiresPermissions("yddemo:indicator:manage")
	@AppFunctionInfo(key = "yddemo:indicator:manage", name = "指标管理", groupKey = "yddemo:indicator", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicators/page/manage")
	public String toIndicatorManagePage() {
		return "project-yddemo/indicator/Indicator_Manage";
	}

	@RequestMapping("/indicators/page/add")
	@RequiresPermissions("yddemo:indicator:add")
	public String toIndicatorAddPage() {
		return "project-yddemo/indicator/Indicator_Add";
	}

	@RequestMapping("/indicators/page/edit")
	@RequiresPermissions("yddemo:indicator:edit")
	public String toIndicatorEditPage() {
		return "project-yddemo/indicator/Indicator_Edit";
	}

	@RequestMapping("/indicatorGroups/page/add")
	@RequiresPermissions("yddemo:indicatorGroup:add")
	public String toIndicatorGroupAddPage() {
		return "project-yddemo/indicator/IndicatorGroup_Add";
	}

	@RequestMapping("/indicatorGroups/page/edit")
	@RequiresPermissions("yddemo:indicatorGroup:edit")
	public String toIndicatorGroupEditPage() {
		return "project-yddemo/indicator/IndicatorGroup_Edit";
	}

	/**
	 * 日报、月报、年报查看
	 */
	@RequestMapping("/dataDays/page/manage")
	@RequiresPermissions("yddemo:dataDay:manage")
	@AppFunctionInfo(key = "yddemo:dataDay:manage", name = "日报查看", groupKey = "yddemo:dataDay", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/dataDays/page/manage")
	public String toIndicatorDataDayManagePage() {
		return "project-yddemo/data/IndicatorDataDay_View";
	}

	@RequestMapping("/dataMonths/page/manage")
	@RequiresPermissions("yddemo:dataMonth:manage")
	@AppFunctionInfo(key = "yddemo:dataMonth:manage", name = "月报查看", groupKey = "yddemo:dataMonth", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/dataMonths/page/manage")
	public String toIndicatorDataMonthManagePage() {
		return "project-yddemo/data/IndicatorDataMonth_View";
	}

	@RequestMapping("/dataYears/page/manage")
	@RequiresPermissions("yddemo:dataYear:manage")
	@AppFunctionInfo(key = "yddemo:dataYear:manage", name = "年报查看", groupKey = "yddemo:dataYear", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/dataYears/page/manage")
	public String toIndicatorDataYearManagePage() {
		return "project-yddemo/data/IndicatorDataYear_View";
	}

	/**
	 * 日指标、月指标、年指标填报
	 */
	@RequestMapping("/plantDays/page/manage")
	@RequiresPermissions("yddemo:plantDay:manage")
	@AppFunctionInfo(key = "yddemo:plantDay:manage", name = "日指标填报", groupKey = "yddemo:plantDay", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/plantDays/page/manage")
	public String toIndicatorDataPlantDayManagePage() {
		return "project-yddemo/data/IndicatorDataPlantDay_View";
	}

	@RequestMapping("/plantMonths/page/manage")
	@RequiresPermissions("yddemo:plantMonth:manage")
	@AppFunctionInfo(key = "yddemo:plantMonth:manage", name = "月指标填报", groupKey = "yddemo:plantMonth", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/plantMonths/page/manage")
	public String toIndicatorDataPlantMonthManagePage() {
		return "project-yddemo/data/IndicatorDataPlantMonth_View";
	}

	@RequestMapping("/plantYears/page/manage")
	@RequiresPermissions("yddemo:plantYear:manage")
	@AppFunctionInfo(key = "yddemo:plantYear:manage", name = "年指标填报", groupKey = "yddemo:plantYear", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/plantYears/page/manage")
	public String toIndicatorDataPlantYearManagePage() {
		return "project-yddemo/data/IndicatorDataPlantYear_View";
	}

	// 沙角A电厂环保月填报
	@RequestMapping("/dataPlantMonthSas/page/manage")
	@RequiresPermissions("yddemo:dataPlantMonthSa:manage")
	@AppFunctionInfo(key = "yddemo:dataPlantMonthSa:manage", name = "环保月填报", groupKey = "yddemo:dataPlantMonthSa", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/dataPlantMonthSas/page/manage")
	public String toIndicatorDataPlantMonthSaManagePage() {
		return "project-yddemo/data/IndicatorDataPlantMonthSa_View";
	}

	// 集团公司燃煤机组环保指标月评价结果表
	@RequestMapping("/dataMonthResults/page/manage")
	@RequiresPermissions("yddemo:dataMonthResult:manage")
	@AppFunctionInfo(key = "yddemo:dataMonthResult:manage", name = "环保指标月评价结果", groupKey = "yddemo:dataMonthResult", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/dataMonthResults/page/manage")
	public String toIndicatorDataMonthResultManagePage() {
		return "project-yddemo/data/IndicatorDataMonthResult_View";
	}

	/**
	 * 授权
	 * 
	 * @return
	 */
	@RequestMapping("/indicatorRoles/page/manage")
	@RequiresPermissions("yddemo:indicatorRole:manage")
	@AppFunctionInfo(key = "yddemo:indicatorRole:manage", name = "指标授权管理", groupKey = "yddemo:indicatorRole", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorRoles/page/manage")
	public String toIndicatorRoleManagePage() {
		return "project-yddemo/indicatorRole/IndicatorRole_Main";
	}

	/**
	 * 指标包
	 * 
	 * @return
	 */
	@RequestMapping("/indicatorPackages/page/manage")
	@RequiresPermissions("yddemo:indicatorPackage:manage")
	@AppFunctionInfo(key = "yddemo:indicatorPackage:manage", name = "指标下发", groupKey = "yddemo:indicatorPackage", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorPackages/page/manage")
	public String toIndicatorPackageManagePage() {
		return "project-yddemo/indicatorPackage/IndicatorPackage_Main";
	}

	@RequestMapping("/indicatorPackages/page/add")
	@RequiresPermissions("yddemo:indicatorPackage:add")
	public String toIndicatorPackageAddPage() {
		return "project-yddemo/indicatorPackage/IndicatorPackage_Add";
	}

	@RequestMapping("/indicatorPackages/page/edit")
	@RequiresPermissions("yddemo:indicatorPackage:edit")
	public String toIndicatorPackageEditPage() {
		return "project-yddemo/indicatorPackage/IndicatorPackage_Edit";
	}

	@RequestMapping("/indicatorAnalysiss/page/view")
	@RequiresPermissions("yddemo:indicatorAnalysis:view")
	@AppFunctionInfo(key = "yddemo:indicatorAnalysis:view", name = "指标分析", groupKey = "yddemo:indicatorAnalysis", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorAnalysiss/page/view")
	public String toIndicatorAnalysissPage() {
		return "project-yddemo/indicatorAnalysis/IndicatorAnalysis";
	}

	@RequestMapping("/benchmarks/page/manage")
	@RequiresPermissions("yddemo:benchmark:manage")
	@AppFunctionInfo(key = "yddemo:benchmark:manage", name = "对标值配置", groupKey = "yddemo:benchmark", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/benchmarks/page/manage")
	public String toBenchmarkManagePage() {
		return "project-yddemo/benchmark/Benchmark_View";
	}

	@RequestMapping("/benchmarks/page/grid")
	@RequiresPermissions("yddemo:benchmark:manage")
	@AppFunctionInfo(key = "yddemo:benchmark:edit", name = "对标值配置", groupKey = "yddemo:benchmark", //
			isMenu = false, type = FunctionType.BUTTON, url = "/yddemo/benchmarks/page/manage")
	public String toBenchmarkGridPage() {
		return "project-yddemo/benchmark/Benchmark_Grid";
	}

	@RequestMapping("/benchmarks/page/design")
	@RequiresPermissions("yddemo:benchmark:design")
	@AppFunctionInfo(key = "yddemo:benchmark:design", name = "设计值对标", groupKey = "yddemo:benchmark", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/benchmarks/page/design")
	public String toBenchmarkDesignPage() {
		return "project-yddemo/benchmark/BenchmarkDesignValue_View";
	}

	@RequestMapping("/benchmarks/page/indicator")
	@RequiresPermissions("yddemo:benchmark:design")
	public String toSelectIndicatorPage() {
		return "project-yddemo/benchmark/BenchmarkDesignValue_Dialog";
	}

	@RequestMapping("/benchmarks/page/unitDialog")
	public String toSelectUnitDialogPage() {
		return "project-yddemo/benchmark/BenchmarkUnit_Dialog";
	}

	@RequestMapping("/benchmarks/page/unit")
	@RequiresPermissions("yddemo:benchmark:unit")
	@AppFunctionInfo(key = "yddemo:benchmark:unit", name = "机组对标", groupKey = "yddemo:benchmark", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/benchmarks/page/unit")
	public String toBenchmarkUnitPage() {
		return "project-yddemo/benchmark/BenchmarkUnit_View";
	}

	@RequestMapping("/benchmarks/page/surround")
	@RequiresPermissions("yddemo:benchmark:surround")
	@AppFunctionInfo(key = "yddemo:benchmark:surround", name = "环比对标", groupKey = "yddemo:benchmark", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/benchmarks/page/surround")
	public String toBenchmarkSurroundPage() {
		return "project-yddemo/benchmark/BenchmarkSurround_View";
	}
	
	@RequestMapping("/indicatorDataExtractions/manage")
	@RequiresPermissions("yddemo:indicatorDataExtraction:manage")
	@AppFunctionInfo(key = "yddemo:indicatorDataExtraction:manage", name = "指标映射管理", groupKey = "yddemo:indicatorDataExtraction", 
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorDataExtractions/manage")
	public String toIndicatorMapperConfigPage() {
		return "project-yddemo/indicatorDataExtraction/IndicatorExtraction_View";
	}
	
	@RequestMapping("/indicatorDataExtractions/add")
	@RequiresPermissions("yddemo:indicatorDataExtraction:add")
	public String toIndicatorMapperConfigAddPage() {
		return "project-yddemo/indicatorDataExtraction/IndicatorExtraction_Add";
	}
	
	@RequestMapping("/indicatorDataExtractions/edit")
	@RequiresPermissions("yddemo:indicatorDataExtraction:edit")
	public String toIndicatorMapperConfigEditPage() {
		return "project-yddemo/indicatorDataExtraction/IndicatorExtraction_Edit";
	}
	
	@RequestMapping("/indicatorDataExtractions/dialog/companyDialog")
	@RequiresPermissions("yddemo:indicatorDataExtraction:manage")
	public String toCompanyDialog() {
		return "project-yddemo/dialog/Company_Dialog";
	}
	
	@RequestMapping("/indicatorDataExtractions/dialog/comUnitDialog")
	@RequiresPermissions("yddemo:indicatorDataExtraction:manage")
	public String toComUnitDialog() {
		return "project-yddemo/dialog/ComUnit_Dialog";
	}
	
	@RequestMapping("/indicatorDataExtractionLogs/manage")
	@RequiresPermissions("yddemo:indicatorDataExtractionLog:manage")
	@AppFunctionInfo(key = "yddemo:indicatorDataExtractionLog:manage", name = "指标数据更新", groupKey = "yddemo:indicatorDataExtractionLog", 
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorDataExtractionLogs/manage")
	public String toIndicatorMapperDataLogPage() {
		return "project-yddemo/indicatorDataExtraction/IndicatorExtractionLog_View";
	}
	
	/**
	 * 报表1
	 * @return
	 */
	@RequestMapping("/indicatorReport/report1")
	@RequiresPermissions("yddemo:indicatorReport:report1")
	@AppFunctionInfo(key = "yddemo:indicatorReport:report1", name = "发电生产能力报表", groupKey = "yddemo:indicatorReport", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorReport/report1")
	public String toRepoet1Page() {
		return "project-yddemo/report/Report1";
	}
	/**
	 * 报表2
	 * @return
	 */
	@RequestMapping("/indicatorReport/report2")
	@RequiresPermissions("yddemo:indicatorReport:report2")
	@AppFunctionInfo(key = "yddemo:indicatorReport:report2", name = "6000千瓦及以上电厂发电机组运行情况", groupKey = "yddemo:indicatorReport", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorReport/report2")
	public String toRepoet2Page() {
		return "project-yddemo/report/Report2";
	}
	/**
	 * 报表3
	 * @return
	 */
	@RequestMapping("/indicatorReport/report3")
	@RequiresPermissions("yddemo:indicatorReport:report3")
	@AppFunctionInfo(key = "yddemo:indicatorReport:report3", name = "6000千瓦及以上电厂发电生产情况报表", groupKey = "yddemo:indicatorReport", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorReport/report3")
	public String toRepoet3Page() {
		return "project-yddemo/report/Report3";
	}
	/**
	 * 报表4
	 * @return
	 */
	@RequestMapping("/indicatorReport/report4")
	@RequiresPermissions("yddemo:indicatorReport:report4")
	@AppFunctionInfo(key = "yddemo:indicatorReport:report4", name = "6000千瓦及以上电厂发电机组运行情况", groupKey = "yddemo:indicatorReport", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorReport/report4")
	public String toRepoet4Page() {
		return "project-yddemo/report/Report4";
	}
	/**
	 * 报表5
	 * @return
	 */
	@RequestMapping("/indicatorReport/report5")
	@RequiresPermissions("yddemo:indicatorReport:report5")
	@AppFunctionInfo(key = "yddemo:indicatorReport:report5", name = "6000千瓦及以上电厂发电燃料消耗情况", groupKey = "yddemo:indicatorReport", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorReport/report5")
	public String toRepoet5Page() {
		return "project-yddemo/report/Report5";
	}
	/**
	 * 报表6
	 * @return
	 */
	@RequestMapping("/indicatorReport/report6")
	@RequiresPermissions("yddemo:indicatorReport:report6")
	@AppFunctionInfo(key = "yddemo:indicatorReport:report6", name = "6000千瓦及以上电厂供热生产情况", groupKey = "yddemo:indicatorReport", //
			isMenu = true, type = FunctionType.PAGE, url = "/yddemo/indicatorReport/report6")
	public String toRepoet6Page() {
		return "project-yddemo/report/Report6";
	}
}
